package bit.springtransdemo.service;
import bit.springtransdemo.mapper.LogInfoMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
@Slf4j
public class LogService {
    @Autowired
    private LogInfoMapper logInfoMapper;


    @Transactional(propagation = Propagation.NESTED)
    public void insertLog(String userName,  String op){
        //记录⽤⼾操作
        logInfoMapper.insertLog(userName,op);
    }
}
